import request from './request.js';
export default {
  async getTaskSelect(option) {
    return request({
      method: 'get',
      url: '/task/select',
      params: option,
    });
  },
  async getTaskCheck(option) {
    return request({
      method: 'get',
      url: '/task/check',
      params: option,
    });
  },
  async passTask(option) {
    return request({
      method: 'post',
      url: '/task/pass',
      data: option,
      header: {
        'Content-Type': 'application/json',
      },
    });
  },
  async refuseTask(option) {
    return request({
      method: 'post',
      url: 'task/refuse',
      data: option,
      header: {
        'Content-Type': 'application/json',
      },
    });
  },
};
